<div class="nav main">
    <div class="logo"><a href=""><img src="/home/images/logo_03.png"/></a></div>
    <ul class="nav_ul">
        <a href="/main/aboutus">
            <li active="5" class="navi navi5">关于我们</li>
        </a>
        <a href="/main/mortgage">
            <li active="4" class="navi navi4">金融工具</li>
        </a>
        <a href="">
            <li active="3" class="navi navi3">在线办卡</li>
        </a>
        <a href="/main/productlist">
            <li active="2" class="navi navi2">我要贷款</li>
        </a>
        <a href="/main/index">
            <li active="1" class="navi navi1">首页</li>
        </a>
    </ul>
</div><!--nav-->
<script>
    if(!localStorage.id){
        localStorage.id  = 1;
    }
    $(function () {
        $(".navi").click(function () {
            localStorage.id = $(this).attr('active');
        })
        $(".navi" + localStorage.id).attr('id','navcur');
    })
</script>